package com.fmboy.MXH.nav.domain.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 分类数据传输对象
 */
@Data
@Schema(name = "CategoryVO", description = "分类数据传输对象")
public class CategoryVO implements Serializable {

    @Schema(description = "分类ID", example = "1")
    private Integer id;

    @Schema(description = "分类名", example = "收藏1")
    private String category_name;

    @Schema(description = "分类说明", example = "收藏1")
    private String category_text;

    @Schema(description = "分类状态", example = "已发布")
    private String state;

    @Schema(description = "分类描述", example = "收藏1")
    private String reason;

    @Schema(description = "创建时间", example = "2023-05-01 00:00:00")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime create_time;

    @Schema(description = "修改时间", example = "2023-05-01 00:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime update_time;
}